import { MainScene } from "../scenes";
import { Polygon } from "./Polygon";
import { polygon } from "../enums";
import { Diamond } from "./Diamond";

export class ThreePolygon extends Polygon {


    constructor(scene: MainScene, x: number, y: number, row: number, col: number) {
        super(scene, x, y, polygon.three, row, col)

        scene.time.addEvent({
            delay: 10000,
            loop: true,
            callback: () => {
                new Diamond(scene, this.x+50, this.y)
            }
        });
    }

    protected preUpdate(time: number, delta: number): void {
        super.preUpdate(time, delta)
    }

    destroy(fromScene?: boolean): void {
        super.destroy()
    }

}